using TMPro;
using UnityEngine;

namespace Voodoo.GameOps
{
	public class UIScaleWave : MonoBehaviour
	{
		[SerializeField]
		private float _speed = 1f;

		[SerializeField]
		private float _amount = 0.3f;

		private TextMeshPro _text;

		private void Awake()
		{
			_text = GetComponent<TextMeshPro>();
		}

		private void Update()
		{
			float num = Mathf.Sin(Time.time * _speed) * _amount;
			base.transform.localScale = Vector3.one + Vector3.one * num;
		}
	}
}
